/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cz.muni.fi.diplomka.datalayer.dao;

import cz.muni.fi.diplomka.datalayer.entity.ResearchEntity;
import java.util.List;

/**
 * Interface for manipulation with Research Entity
 *
 * @author Jakub Kutil
 */
public interface ResearchDao {

    /**
     * Add ResearchEntity to DB
     *
     * @param researchEntity ResearchEntity to add
     */
    public void addResearch(ResearchEntity researchEntity);

    /**
     * Edits a ResearchEntity in DB
     *
     * @param researchEntity
     */
    public void editResearch(ResearchEntity researchEntity);

    /**
     * Gets all finished researches of specified player
     *
     * @param playerId ID of player
     *
     * @return List of all found finished researches
     */
    public List<ResearchEntity> getAllResearchesOfPlayer(Long playerId);
}
